<script>
  function focus_handler(field_message)
  {
    status=field_message
  }
  function blur_handler(field_message)
  {
    status=field_message
  }
  
  function change_handler(text_field)
{
  text_field.value=text_field.value.toLowerCase()
}
</script>
<form>
  First Name: 
  <input type="text" onFocus="focus_handler('Enter your first name.')"><br>
  Last Name:
  <input type="text" onFocus="focus_handler('Enter your last name.')"><br>
  For blur:
  <input type="text" onBlur="blur_handler('I loss the focus!!!')"><br>
  For change:
  <input type="text" value="Change Me!" onChange="change_handler(this)">
  <p>
  <input type="submit" onFocus="focus_handler('Click this button to submit the form.')">
  <input type="reset" onFocus="focus_handler('Click this button to reset the form.')">
</form>

